package com.core.dao;

import org.springframework.stereotype.Repository;

import com.core.base.dao.BaseHibernateDao;
import com.core.model.MenuActionFunc;

/**
 * 菜单功能按钮DAO
 * 
 * @author pt-chenqw
 *
 */
@Repository("menuActionFuncDAO")
public class MenuActionFuncDAO extends BaseHibernateDao<MenuActionFunc> {
	
	/**
	 * 根据请求action查询菜单功能按钮
	 * @param actionUrl
	 * @return
	 */
	public MenuActionFunc getMenuActionFuncByActionUrl(String actionUrl){
		String hql = "from MenuActionFunc where actionURL = ?";
		return findOne(hql, actionUrl);
	}

}
